# -*- coding: utf-8 -*-
class MomentTag:
    index_name = 'moment_tag_development'
    index_type = 'moment_tag'
    data = {}
    id = None

    def __init__(self, hash):
        self.data = hash
        self.id = hash['id']
        tag_name = hash['tag_name']
        if isinstance(tag_name, dict):
            self.data['tag_name_string'] = ' '.join(tag_name.values())


class TaggingRecord:
    index_name = 'tagging_record_development'
    index_type = 'tagging_record'
    data = {}
    id = None

    def __init__(self, hash):
        self.data = hash
        self.id = hash['id']
